package com.meituan.sdk.model.ddzhkh.shangpin.productDealgroupUpdateShopids;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 修改团单适用门店
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/shangpin/dealgroup/updateshopids",
    businessId = 59,
    apiVersion = "10091",
    apiName = "product_dealgroup_update_shopids",
    needAuth = true
)
public class ProductDealgroupUpdateShopidsRequest implements MeituanRequest<ProductDealgroupUpdateShopidsResponse> {
    /**
    * <p data-diff-id="ct-diff-id-41e82032-f733-4479-adbb-7bfe5245a920">团单ID</p>
    */
    @SerializedName("dealGroupId")
    private Integer dealGroupId;
    /**
    * <p data-diff-id="ct-diff-id-d04d0ff2-d700-48c0-ae1d-fa2348a8f725">Long型团单id</p>
    */
    @SerializedName("longDealGroupId")
    private Long longDealGroupId;
    /**
    * <p data-diff-id="ct-diff-id-45cca26f-e20c-429c-bca6-0e7746d2d1a9">来源</p>
    */
    @NotBlank(message = "source不能为空")
    @SerializedName("source")
    private String source;
    /**
    * <p data-diff-id="ct-diff-id-17ba7a0d-2de0-4f1d-bc05-2d8b809dac8d"><span style="color: rgb(31, 45, 61)">商户ID列表</span></p>
    */
    @NotEmpty(message = "opPoiIds不能为空")
    @SerializedName("opPoiIds")
    private List<String> opPoiIds;

    public Integer getDealGroupId() {
        return dealGroupId;
    }
    public void setDealGroupId(Integer dealGroupId) {
        this.dealGroupId = dealGroupId;
    }
    public Long getLongDealGroupId() {
        return longDealGroupId;
    }
    public void setLongDealGroupId(Long longDealGroupId) {
        this.longDealGroupId = longDealGroupId;
    }
    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }
    public List<String> getOpPoiIds() {
        return opPoiIds;
    }
    public void setOpPoiIds(List<String> opPoiIds) {
        this.opPoiIds = opPoiIds;
    }


    @Override
    public MeituanResponse<ProductDealgroupUpdateShopidsResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ProductDealgroupUpdateShopidsResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ProductDealgroupUpdateShopidsRequest{" + "dealGroupId=" + dealGroupId + "," + "longDealGroupId=" + longDealGroupId + "," + "source=" + source + "," + "opPoiIds=" + opPoiIds + "}";
    }
}
